<!--
*Author：富行天下团队

 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/Mall/Small_log.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/Small_log.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '订单日志',
                    name: 'Small_log',
                    url: "/Small_log/",
                    sortName: "createDate"
                },
                extend: extend,
                editFormFields: {},
                editFormOptions: [],
                searchFormFields: {"beginDate":"","distributorCode":""},
                searchFormOptions: [[ { "title": "日期", "field": "beginDate", "type": "datetime" },{"title":"分销商","field":"distributorCode","type":"select","dataKey":"distributorList"}]],
                columns: [
                       {field:'userName',title:'用户名称',type:'string',width:220,align:'left'},
                       {field:'userIP',title:'用户IP',type:'string',width:120,align:'left'},
                       {field:'distributorCode',title:'分销商',type:'string',width:220,align:'left'},
                       {field:'elapsedTime',title:'接口执行时间',type:'int',width:90,align:'left'},
                       {field:'beginDate',title:'开始日期',type:'datetime',width:90,align:'left',sortable:true},
                       {field:'endDate',title:'结束日期',type:'datetime',width:90,align:'left',sortable:true},
                       {field:'exceptionInfo',title:'异常信息',type:'string',width:90,align:'left'},
                       {field:'id',title:'id',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'logType',title:'日志类型',type:'string',width:90,align:'left'},
                       {field:'requestParameter',title:'请求参数',type:'string',width:90,align:'left'},
                       {field:'responseParameter',title:'响应参数',type:'string',width:90,align:'left'},
                       {field:'serviceIP',title:'服务IP',type:'string',width:120,align:'left'},
                       {field:'success',title:'成功',type:'int',width:90,align:'left'},
                       {field:'url',title:'接口地址',type:'string',width:220,align:'left'},
                      //  {field:'user_id',title:'用户ID',type:'int',width:90,align:'left'},

                       ],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
